home *** CD-ROM | disk | FTP | other *** search
- Path: news.eunet.ch!usenet
- From: Patrick Luginbuehl <galifa@dial.eunet.ch>
- Newsgroups: comp.lang.c
- Subject: Doesn't seem to work: Overlays and Microsoft C V8.0... where's my error?
- Date: Wed, 06 Mar 1996 16:36:53 -0800
- Organization: EUnet AG
- Message-ID: <313E2FA5.1A6F@dial.eunet.ch>
- NNTP-Posting-Host: galifa.dial.eunet.ch
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-2
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- I'm trying to overlay some functions in a DOS project using Microsoft C
- 8.0 (part of MSVC 1.52). As I understand, all I need to do is to create a
- *.DEF file containing the modules I want to overlay. Say I've a main
- module TESTOVL, the definitions are in DEF.H, and the modules to overlay
- are TESTFUNC.C and TESTFUN2.C. hence my TESTOVL.DEF contains
-
- SEGMENTS testfunc_TEXT OVL:1
- SEGMENTS testfun2_TEXT OVL:2
-
- After recompiling the project the size of TESTOVL.EXE is about 8KB bigger
- than before which is ok due to the additional overlay manager code. But
- the program seems to need about 2KB more RAM to start than it used to
- need as a straight EXE (without overlays)!!!
-
- What do I need to do to transform a DOS project to a Overlay DOS project
- (compiler/linker switches, content of *.DEF). A small sample project
- would be _greatly_ appreciated!
-
- Please e-mail any suggestions to galifa@dial.eunet.ch
-
- Thank you very much
-
- Patrick
-